import {v4 as uuidv4} from 'uuid'
//随机生成字符串,每次执行不能发生变化,需要存入本地存储中
export default {
    getUUID(){
        let uuid=localStorage.getItem('uuid')
        if (!uuid) {
            uuid=uuidv4()
            localStorage.setItem('uuid',uuid)
        }
        return uuid
    }
}

